home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 23 / CU Amiga - Super CD-ROM 23 (June 1998).iso / CUCD / Programming / OUI / include / gadgets / rcs / cycle.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.7 KB  |  101 lines

  1. head    1.2;
  2. access;
  3. symbols;
  4. locks
  5.     dlorre:1.2; strict;
  6. comment    @ * @;
  7.  
  8.  
  9. 1.2
  10. date    97.07.14.04.26.36;    author dlorre;    state Exp;
  11. branches;
  12. next    1.1;
  13.  
  14. 1.1
  15. date    96.08.22.02.06.07;    author dlorre;    state Exp;
  16. branches;
  17. next    ;
  18.  
  19.  
  20. desc
  21. @Oui.lib -- Object User Interface
  22. Projet créé en 1994
  23. Auteur: Dominique Lorre
  24. @
  25.  
  26.  
  27. 1.2
  28. log
  29. @*** empty log message ***
  30. @
  31. text
  32. @// $Id$
  33. #ifndef CLASS_CYCLE_H
  34. #define CLASS_CYCLE_H
  35.  
  36. #ifndef EXEC_TYPES_H
  37. #include <exec/types.h>
  38. #endif
  39.  
  40. #ifndef CLASS_WINDOW_H
  41. class window ;
  42. #endif
  43.  
  44. #ifndef CLASS_GADGETLIST_H
  45. class gadgetlist ;
  46. #endif
  47.  
  48. #ifndef CLASS_GADGET_H
  49. #include "gadgets/gadget.h"
  50. #endif
  51.  
  52. // ========================================================================
  53. // ==========================  CYCLE CLASS ================================
  54. // ========================================================================
  55.  
  56. class cycle : public gadget
  57. {
  58.     STRPTR  *cylabs ;
  59.     short   labsize ;
  60. public:
  61.     short   cursel ;
  62.  
  63.     cycle(gadgetlist *gl,
  64.           void (window::*func)(gadget *, unsigned long, unsigned short),
  65.           const char *text,
  66.           LONG      flags,
  67.           long active, const char** table) ;
  68.     cycle(gadgetlist *gl,
  69.           void (window::*func)(gadget *, unsigned long, unsigned short),
  70.           const char *text,
  71.           LONG      flags,
  72.           long active, const char *t, ...) ;
  73.      ~cycle() ;
  74.     void action(unsigned long, unsigned short) ;
  75.     void keystroke(BOOL shifted) ;
  76.     void set(long active) ;
  77. };
  78. #endif
  79. @
  80.  
  81.  
  82. 1.1
  83. log
  84. @Initial revision
  85. @
  86. text
  87. @d1 1
  88. d34 1
  89. a34 1
  90.           STRPTR    text,
  91. d36 1
  92. a36 1
  93.           long active, STRPTR *table) ;
  94. d39 1
  95. a39 1
  96.           STRPTR    text,
  97. d41 1
  98. a41 1
  99.           long active, STRPTR t, ...) ;
  100. @
  101.